package com.phuc.app.vuivui;

import android.annotation.SuppressLint;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentStatePagerAdapter;
import android.support.v4.view.PagerAdapter;

@SuppressLint("ValidFragment")
public class ImageAdapter extends FragmentStatePagerAdapter {
	
	public ImageAdapter(FragmentManager fm) {
		super(fm);
	}

	@Override
    public int getItemPosition(Object object) {
    	return PagerAdapter.POSITION_NONE;
    }
	
	@Override
	public Fragment getItem(int index) {
		return ArrayListFragment.newInstance(index);
	}

	@Override
	public int getCount() {
		return ReadingActivity.listId.size();
	}
	
}
